package com.lagou.edu.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author 陶肖寅
 * @version V1.0
 * <p>
 *     邮件feign客户端
 * @date 2020-05-06 21:44
 * @email fromlx@126.com
 * @Copyright © 2020-2021 城云科技(中国)有限公司
 * </p>
 */
@FeignClient(value = "lagou-service-email",path = "/email")
public interface MailFeignClient {
    @GetMapping("/{email}/{code}")
    public boolean send(@PathVariable("email") String email,
                        @PathVariable("code") String code);
}
